g++ fndefer.h  test_defer.cpp -o defer_test -l pthread 
